Termination Proof Script
Consider the TRS R consisting of the rewrite rules
|
| 1: |
|
incr(nil) |
→ nil |
| 2: |
|
incr(cons(X,L)) |
→ cons(s(X),incr(L)) |
| 3: |
|
adx(nil) |
→ nil |
| 4: |
|
adx(cons(X,L)) |
→ incr(cons(X,adx(L))) |
| 5: |
|
nats |
→ adx(zeros) |
| 6: |
|
zeros |
→ cons(0,zeros) |
| 7: |
|
head(cons(X,L)) |
→ X |
| 8: |
|
tail(cons(X,L)) |
→ L |
|
There are 6 dependency pairs:
|
| 9: |
|
INCR(cons(X,L)) |
→ INCR(L) |
| 10: |
|
ADX(cons(X,L)) |
→ INCR(cons(X,adx(L))) |
| 11: |
|
ADX(cons(X,L)) |
→ ADX(L) |
| 12: |
|
NATS |
→ ADX(zeros) |
| 13: |
|
NATS |
→ ZEROS |
| 14: |
|
ZEROS |
→ ZEROS |
|
The approximated dependency graph contains 3 SCCs:
{9},
{11}
and {14}.
-
Consider the SCC {9}.
There are no usable rules.
By taking the AF π with
π(INCR) = 1
and π(cons) = [2] together with
the lexicographic path order with
empty precedence,
rule 9
is strictly decreasing.
-
Consider the SCC {11}.
There are no usable rules.
By taking the AF π with
π(ADX) = 1
and π(cons) = [2] together with
the lexicographic path order with
empty precedence,
rule 11
is strictly decreasing.
-
Consider the SCC {14}.
There are no usable rules.
The constraints could not be solved.
Tyrolean Termination Tool (0.01 seconds)
--- May 4, 2006